<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class ChangeNoteDemandTypeAddTaskProgressInNoteTable extends AbstractMigration
{

    public function up()
    {
        $note = $this->table('note');
        $note->changeColumn('demand_type', 'enum', ['values' => 'default,feedback,review_feedback,repair_feedback,demand,comment,task_progress', 'default' => 'default', 'comment' => '需求类型 (default默认,feedback反馈,review_feedback审核反馈,repair_feedback返修反馈,demand需求,comment评论,task_progress任务进展)'])
            ->save();
    }

    public function down()
    {
        $this->table('note')->changeColumn('demand_type', 'enum', ['values' => 'default,feedback,review_feedback,repair_feedback,demand,comment', 'default' => 'default', 'comment' => '需求类型 (default默认,feedback反馈,review_feedback审核反馈,repair_feedback返修反馈,demand需求,comment评论)'])->save();
    }

}
